package com.six.shop.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.six.core.entity.CheckShop;
import com.six.core.vo.Result;
import com.six.shop.service.CheckShopService;
import com.six.shop.vo.SearchCheckShop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * ClassName:CheckShopController
 * Description:
 * date:2023/2/27 11:16
 *
 * @since JDK 1.8
 */
@RestController
@RequestMapping("shop/checkshop")
@CrossOrigin
public class CheckShopController {

    @Autowired
    private CheckShopService checkShopService;

    @GetMapping("findAll")
    public Result findAll(@RequestBody SearchCheckShop checkShop, @RequestParam(defaultValue = "1") Integer currentPage, @RequestParam(defaultValue = "5")Integer pageSize){
        return checkShopService.findAll(checkShop,currentPage,pageSize);
    }
}
